package com.aispeech.asr.apis.detection.metrics;

import com.aispeech.asr.comm.metrics.MetricsBase;
import io.prometheus.client.Counter;
import io.prometheus.client.Gauge;
import io.prometheus.client.Summary;

public class Prometheus extends MetricsBase {
    public static final Counter COUNTER_DETECTION_REQUESTS = Counter.build()
            .name("counter_detection_requests")
            .labelNames("env", "hostName", "productId", "status")
            .help("counter_detection_requests")
            .register();

    public static final Summary SUMMARY_REAILRATE = Summary.build()
            .name("summary_detection_real_rate")
            .labelNames("env", "hostName")
            .help("summary_detection_real_rate")
            .quantile(0.5, 0.5)
            .quantile(0.95, 0.95)
            .register();

    public static final Gauge GAUGE_N_CONCURRENCY_SESSIONS = Gauge.build()
            .name("gauge_n_detection_concurrency")
            .labelNames("env", "hostName")
            .help("gauge_n_detection_concurrency")
            .register();
}
